package thread;

public class Demo16 {
    public static void main(String[] args) throws InterruptedException {
        Object o = new Object();
        System.out.println("wait之前");
        synchronized (o) {
            o.wait();
        }

        System.out.println("wait之后");

    }
}
